//
//  XSJJumpVCTool.h
//  XV
//
//  Created by apple on 03/04/2019.
//  Copyright © 2019 XR. All rights reserved.
//

#import <Foundation/Foundation.h>


NS_ASSUME_NONNULL_BEGIN


//选择图片和拍照、视频Block,返回array
typedef void(^MediaCameraBlock)(NSArray *array,NSError *error);


/**
 用于常用VC跳转工具类
 */
@interface XSJJumpVCTool : NSObject

+ (instancetype)sharedManager;


//跳转到网页界面
+(void)to_WebVC:(NSString*)url title:(NSString*)title srcVC:(UIViewController*)srcVC;

//跳转到聊天界面
+(void)to_ChatVC:(NSString*)mid srcVC:(UIViewController*)srcVC;

//跳转到视频聊天界面
-(void)to_VideoChatVC:(NSString*)mid srcVC:(UIViewController*)srcVC;

//跳转到充值界面
+(void)to_RechargeVC:(UIViewController*)srcVC;

//播放音频
+(void)to_PlayVoice:(NSString*)voiceUrl srcVC:(UIViewController*)srcVC;

//播放视频
+(void)to_PlayVideo:(id)videoCallModel vid:(NSString*)vid srcVC:(UINavigationController *)naviController;


@property (nonatomic, weak) UIViewController* srcVC;

//跳转到图片选择或拍照视频界面(多张图片选择时不能剪)
-(void)to_MediaCameraVC:(UIViewController*)srcVC maxCount:(NSInteger)maxCount isImage:(BOOL)isImage isSrcImage:(BOOL)isSrcImage isVideo:(BOOL)isVideo isClip:(BOOL)isClip isCircle:(BOOL)isCircle isAlert:(BOOL)isAlert completion:(nullable MediaCameraBlock)completion;
@property (nonatomic, copy) MediaCameraBlock mediaCameraOK;
@property (nonatomic, assign) NSInteger maxCount;
//是否选择图片
@property (nonatomic, assign) BOOL isImage;
//是否选择原图
@property (nonatomic, assign) BOOL isSrcImage;
//是否选择视频
@property (nonatomic, assign) BOOL isVideo;
//是否裁剪，多张图片选择时不能剪
@property (nonatomic, assign) BOOL isClip;
//是否圆形裁剪
@property (nonatomic, assign) BOOL isCircle;
//是否在选择前弹框选择拍照还是选择相删除
@property (nonatomic, assign) BOOL isAlert;

@end

NS_ASSUME_NONNULL_END
